import * as CommonHttpService from './CommonHttpService';
import $$ from 'utils';

const server = "http://192.168.1.104:8086/"

export async function getEcgDevices(payload) {
  const apiPath = '/ui/device/ecg';
  const params = payload;
  return new Promise(function (resolve, reject) {
    CommonHttpService.commonGet(apiPath, {}, params, server).then((resp) => {
      resolve(resp);
    }).catch((error) => {
      reject(error);
    });
  });
}
